package com.crocodileQ.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crocodileQ.common.PageResult;
import com.crocodileQ.common.R;
import com.crocodileQ.domain.VO.ArticleDetailVO;
import com.crocodileQ.domain.VO.ArticleListVO;
import com.crocodileQ.domain.VO.HotArticleVO;
import com.crocodileQ.domain.entity.Article;

import java.util.List;

public interface ArticleService extends IService<Article> {

    /**
     * 查询热门文章
     * @return
     */
    R<List<HotArticleVO>> hotArticleList();

    /**
     * 分页查询文章
     * @return
     */
    R<PageResult<ArticleListVO>> articleList(Integer pageNum, Integer pageSize, Long categoryId,String name);

    /**
     * 获取文章详情
     * @param id
     * @return
     */
    R<ArticleDetailVO> getArticleDetail(Long id);
}



